<div class="admin_left actions">
    <h3 style="font-size:20px;">Manage more</h3>
	<ul>
        <?php if($current_customer['group_id'] == '1'): ?>
            <li style="list-style-type:none; margin-bottom:20%;"><?php echo $this->Html->link(__('List Customers'), array('action' => 'index'),array('class' => 'consistentButton')); ?></li>
        <?php endif; ?>
        <li style="list-style-type:none; margin-bottom:20%;"><?php echo $this->Html->link(__('My Details'), array('action' => 'view', $customer['Customer']['id']),array('class' => 'consistentButton2')); ?></li>
        <li style="list-style-type:none; margin-bottom:20%;"><?php echo $this->Html->link(__('Reset Password'), array('action' => 'resetPassword', $customer['Customer']['id']),array('class' => 'consistentButton2')); ?></li>
        
    </ul>
</div>


<div class="admin_right customers form">

    <div id="breadcrumbAdmin" class = "breadcrumb">
        <?php if ($current_customer['group_id'] == '1'): ?>
            <?php $this->Html->addCrumb('Edit customer', '/Customers/edit', array('style'=> ('text-decoration:underline; color:#EB1E70;'))); ?>
            <?php echo $this->Html->getCrumbs(' > ', array( 'text' => 'Customers', 'url' => array('controller' => 'customers', 'action' => 'index'), 'escape' => false)); ?>
        <?php else: ?>
            <?php $this->Html->addCrumb('My account', '/Customers/view'); ?>
            <?php $this->Html->addCrumb('Change my details', '/Customers/edit', array('style'=> ('text-decoration:underline;  color:#EB1E70;'))); ?>
            <?php echo $this->Html->getCrumbs(' > ', array( 'text' => 'Home', 'url' => array('controller' => 'Pages', 'action' => 'pagehome'), 'escape' => false)); ?>
        <?php endif; ?>
    </div>

    <?php echo $this->Form->create('Customer'); ?>
        <fieldset>
            <?php if ($current_customer['group_id'] == '1'): ?>
                <legend><?php echo __('Edit Customer'); ?></legend>
            <?php else: ?>
                <legend><?php echo __('Change My Details'); ?></legend>
            <?php endif;?>
                <?php
                    echo $this->Form->input('first_name');
                    echo $this->Form->input('last_name');
                    echo $this->Form->input('dob');
                    echo $this->Form->input('gender_id');
                    echo $this->Form->input('street');
                    echo $this->Form->input('suburb');
                    echo $this->Form->input('city');
                    echo $this->Form->input('state');
                    echo $this->Form->input('postcode');
                    echo $this->Form->input('country');
                    echo $this->Form->input('phone');

                    echo $this->Form->input('email');
                ?>
        </fieldset>
    <?php echo $this->Form->end(__('Submit')); ?>
    <?php echo $this->Form->submit(__('Cancel', true), array('name' => 'Cancel','div' => false)); ?>
</div>

